@extends('layouts.app')

@section('body')
    @component('components.alert')@endcomponent
    <form action="{{route('admin.login.sms')}}" method="post">

        {{csrf_field()}}
        账号:<input name="mobile" value="{{old('mobile')}}" placeholder="请输入手机号">
        @if($errors->has('mobile'))
            {{$errors->first('mobile')}}
        @endif
        <br/>
        验证码:<input type="text" name="sms_code" value="" placeholder="请输入验证码">
        <a href="{{route('send-sms-code',['mobile'=>'17633190977'])}}" target="_blank">发送验证码</a>
        @if($errors->has('sms_code'))
            {{$errors->first('sms_code')}}
        @endif
        <br/>
        <input type="checkbox" name="remember" checked> 记住登录
        <br/>
        <button type="submit">登录</button>
    </form>
@endsection
